package com.mdxl.Entity;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.apache.ibatis.javassist.SerialVersionUID;
import org.springframework.data.annotation.Id;

import java.io.Serializable;

/**
 * Created by chengjian on 2017/9/13.
 */
@Data
@EqualsAndHashCode(callSuper = false)
@NoArgsConstructor
public class Customer implements Serializable{
    public static final long SerialVersionUID =1L;
    @Id
    private String id;
    private String lastName;
    private String firstName;
    public Customer(String firstName, String lastName) {
        this.firstName = firstName;
        this.lastName = lastName;
    }
    @Override
    public String toString() {
        return String.format(
                "Customer[id=%s, firstName='%s', lastName='%s']",
                id, firstName, lastName);
    }
}
